package lianxi.test01;

public class Clerk extends Employee{
    private Manager Manager;

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept) {
        super(name, workId, dept);
    }

    public Clerk(lianxi.test01.Manager manager) {
        Manager = manager;
    }

    public Clerk(String name, String workId, String dept, lianxi.test01.Manager manager) {
        super(name, workId, dept);
        Manager = manager;
    }

    public lianxi.test01.Manager getManager() {
        return Manager;
    }

    public void setManager(lianxi.test01.Manager manager) {
        Manager = manager;
    }

    @Override
    public void showMsg(){
        System.out.println("职员：工号为 "+getWorkId()+",名字为 "+getName()+"，部门为 "+getDept()+" ,他的经理名字是 " +getManager().getName());

    }
}
